package com.sz.common.base.dao.ext;

import com.sz.common.base.entity.VersionEntity;

import java.util.List;

/**
 * Package: com.sz.common.base.dao.ext <br>
 * Function: TODO: ADD FUNCTION <br>
 * Author: Charles. <br>
 * Date: 2017-03-16 10:32:00.
 */
public interface VersionEntityMapperDao {
    /**
     * @param insertSql
     * @param entity
     */
    void insertEntity(String insertSql, VersionEntity entity);

    /**
     * @param updateSql
     * @param insertSql
     * @param entity
     */
    void updateEntity(String updateSql, String insertSql, VersionEntity entity);

    /**
     * @param updateSql
     * @param softDeleteSQL
     * @param uid
     */
    void deleteEntity(String updateSql, String softDeleteSQL, String uid);

    /**
     * @param insertSql
     * @param entities
     */
    void insertEntities(String insertSql, List<VersionEntity> entities);

    /**
     * @param updateSql
     * @param insertSql
     * @param entities
     */
    void updateEntities(String updateSql, String insertSql, List<VersionEntity> entities);

    /**
     * @param updateSql
     * @param softDeleteSql
     * @param uids
     */
    void deleteEntities(String updateSql, String softDeleteSql, List<String> uids);
}
